//
//  DBUtil.h
//  Shiyun_Newspaper
//
//  Created by zz on 17/6/27.
//  Copyright © 2017年 ShiYun. All rights reserved.
//

#import <Foundation/Foundation.h>
extern NSString * const updateKey;
@interface DBUtil : NSObject

@property (nonatomic, assign, getter=isShouldUpdate) BOOL shouldUpdate;

/**获取(创建)单例对象*/
+ (instancetype) shareInstance;


/**获取版本和年级数据*/
- (void)getEditionAndGradeData:(void (^)(NSError *error, NSDictionary *editionInfo,NSDictionary *gradeInfo))block;

/**直接请求下数据,用于清除缓存功能*/
- (void)requestEditionAndGradeData;

@end
